using SqlSugar;

namespace Process.Domain.Entities
{
    [SugarTable("T_Process")]  // 指定表名
    public class ProcessModel : BaseEntity
    {
        [SugarColumn(ColumnName = "ProcessCode", Length = 50, IsNullable = false)]
        public string ProcessCode { get; set; } // 工序编码
        
        [SugarColumn(ColumnName = "ProcessName", Length = 100, IsNullable = false)]
        public string ProcessName { get; set; } // 工序名称
        
        [SugarColumn(ColumnName = "ProcessExplain", Length = 500, IsNullable = true)]
        public string ProcessExplain { get; set; } // 工序说明
        
        [SugarColumn(ColumnName = "ProcessDesc", Length = 500, IsNullable = true)]
        public string ProcessDesc { get; set; } // 工序备注
        
        [SugarColumn(ColumnName = "ProcessHead", Length = 50, IsNullable = true)]
        public string ProcessHead { get; set; } // 工序负责人
        
        [SugarColumn(ColumnName = "ProcessDepartment", Length = 100, IsNullable = true)]
        public long ProcessDepartment { get; set; } // 工序部门
        
        [SugarColumn(ColumnName = "Processworkshop", Length = 100, IsNullable = true)]
        public long Processworkshop { get; set; } // 工序车间
        
        [SugarColumn(ColumnName = "ProcessMaterials", Length = 200, IsNullable = true)]
        public string ProcessMaterials { get; set; } // 工序物料
        
        [SugarColumn(ColumnName = "ProcessadEnable", IsNullable = false, DefaultValue = "1")]
        public bool ProcessadEnable { get; set; } = false; // 是否启用，默认为启用
    }
} 